/**
 * 
 */
package com.bitBusy.manageyourriches.database.tables;

/**
 * Enum that holds column definitions of table 
 * that holds subcategory category pairing information
 * @author Suma
 *
 */
public enum SubcategoryCategory implements TableDefinition {
	
	SUBCATEGORYCOL("subcategory", " TEXT NOT NULL"),
	CATEGORYCOL("category", " TEXT NOT NULL"),
	PICIDCOL("picID", " INTEGER"),
	PRIMARYKEYSPEC("PRIMARY KEY", "(subcategory, category)");

	
	/** Name of column */
	String name;
	
	/** Datatype of column*/
	String datatype;
	
	/** Parameterized constructor
	 * @param the_name name of column, to be set
	 * @param the datatype of column, to be set
	 */
	private SubcategoryCategory(String the_name, String the_datatype)
	{
		name = the_name;
		datatype = the_datatype;
	}
	
	/** Method to get name of column
	 * @return the name
	 */
	public String getName()
	{
		return name;
	}
	
	/** Method to get datatype of column
	 * @return the datatype
	 */
	public String getType()
	{
		return datatype;
	}
	
	

}
